﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            //var dc = new DigitConverter(16);
            //var dd = dc.ConvertToDigit(737);//123448);

            //var c = dc.ConvertTo32(dd);
            //Console.WriteLine("{0}={1}", dd, c);

            var dc1 = new DigitConverter();
            var dd = dc1.ConvertToDigit(123456);

            var lon = dc1.ConvertTo64(dd);
            Console.WriteLine("{0}={1}", dd, lon);


            var dc2 = new DigitConverter(7);
            dd = dc2.ConvertToDigit(123456);
            var int2 = dc2.ConvertTo64(dd);
            Console.WriteLine("{0}={1}", dd, int2);
        }
    }
}
